<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <link rel="stylesheet" type="text/css" th:href="@{/h-ui/css/H-ui.min.css}" />
    <link rel="stylesheet" type="text/css" th:href="@{/h-ui.admin/css/H-ui.admin.css}" />
    <link rel="stylesheet" type="text/css" th:href="@{/lib/Hui-iconfont/1.0.8/iconfont.css}" />
    <link rel="stylesheet" type="text/css" th:href="@{/h-ui.admin/skin/default/skin.css}" id="skin" />
    <link rel="stylesheet" type="text/css" th:href="@{/h-ui.admin/css/style.css}" />
    <link rel="stylesheet" type="text/css" th:href="@{/lib/layui/css/layui.css}" />
    <title>链接列表</title>
</head>
<body>
<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span> 链接管理 <span class="c-gray en">&gt;</span> 链接列表 <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a></nav>
<div class="page-container">
    <div class="cl pd-5 bg-1 bk-gray mt-20"> <span class="l"> <a class="btn btn-primary radius" data-title="添加链接"  onclick="adminBlog.open('linkCofirm','添加链接')" ><i class="Hui-iconfont">&#xe600;</i> 添加链接</a></span> <span class="r">共有数据：<strong th:text="${page.get('total')}"></strong> 条</span> </div>
    <div class="mt-20">
        <table class="table table-border table-bordered table-bg table-hover table-sort table-responsive" id="labelTable">
            <thead>
            <tr class="text-c">
                <th width="25"><input type="checkbox" name="" value=""></th>
                <th width="80">ID</th>
                <th width="80">名称</th>
                <th width="80">路径</th>
                <th width="120">操作</th>
            </tr>
            </thead>
            <tbody id="labelTbody">
            <tr class="text-c" th:each="link : ${page.get('list')}">
                <td width="10"><input type="checkbox" th:value="${link.id}"/></td>
                <td width="5" th:text="${link.id}" id="id">1</td>
                <td width="5" th:text="${link.title}" id="title1">java</td>
                <td width="5" th:text="${link.urlPath}" id="urlPath1">java</td>
                <td class="f-14 td-manage"> <a style="text-decoration:none" class="ml-5" onClick="adminBlog.del(this,3)" href="javascript:;" title="删除"><i class="Hui-iconfont">&#xe6e2;</i></a></td>
            </tr>
            </tbody>
        </table>

    </div>
    <!--弹出层添加框-->
    <div style="display: none" id="linkCofirm">
        <form class="form form-horizontal" id="linkForm">
            <div style="margin-top: 3%;">
                <label class="form-label col-xs-4 col-sm-2" for="title">名称:</label>
                <input type="text" id="title" name="title" value="" placeholder="请输入链接名称" class="input-text" style="width: 70%">
            </div>
            <div style="margin-top: 3%;">
                <label class="form-label col-xs-4 col-sm-2" for="urlPath">路径:</label>
                <input type="text" id="urlPath" name="urlPath" value="" placeholder="请输入链接路径" class="input-text" style="width: 70%">
            </div>
            <div style="margin-top: 10%;margin-left: 41%">
                <div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-2">
                    <button onClick="adminBlog.add('linkForm','/link/add',3);" class="btn btn-primary radius" type="button" id="labelSave"><i class="Hui-iconfont">&#xe632;</i> 保存</button>
                    <button onClick="adminBlog.layer_close();" class="btn btn-default radius" type="button">&nbsp;&nbsp;取消&nbsp;&nbsp;</button>
                </div>
            </div>

        </form>
    </div>
</div>
<!--_footer 作为公共模版分离出去-->
<script type="text/javascript" th:src="@{/js/jquery-2.0.3.min.js}"></script>
<script type="text/javascript" th:src="@{/layer/layer.js}"></script>
<script type="text/javascript" th:src="@{/h-ui/js/H-ui.min.js}"></script>
<script type="text/javascript" th:src="@{/h-ui.admin/js/H-ui.admin.js}"></script> <!--/_footer 作为公共模版分离出去-->
<script type="text/javascript" th:src="@{/lib/layui/layui.js}"></script>
<script type="text/javascript" th:src="@{/lib/laypage/1.2/laypage.js}"></script>
<script type="text/javascript" th:src="@{/js/admin/admin.js}"></script>

<script type="text/javascript">
    adminBlog.page("/type/list");
</script>
</body>
</html>